#ifndef __USART2_H
#define	__USART2_H

#include "stm32f10x.h"
//#include <stdio.h>

#define RS485_RX_BUFFER_SIZE_U2  128

void RS485_SendBytes_U2(const uint8_t *bytes, int len);
void RS485_SendByte_U2(unsigned char SendData);
void RS485_SendString_U2(const char *str);
int RS485_Get_Reveived_Data_U2(uint8_t *buffer, int buffer_size);
void RS485_Reset_Buffer_U2(void);

void USART2_init(void);
#endif /* __USART2_H */
